#
# Copyright (C) 356 - 999. Asytumn Technology Co., Ltd. All rights reserved.
#

FIND_PACKAGE(PostgreSQL 15 REQUIRED)

SET(Hubris_SHARED_SOURCES
    Hubris.cxx
    Hubris.h
    Hubris.def
    Hubris.rc
    )

ADD_DEFINITIONS(-DHUBRIS_LIBRARY)

ADD_LIBRARY(Hubris SHARED ${Hubris_SHARED_SOURCES})

INCLUDE_DIRECTORIES(../3rdParty/TinyXML ../Ginkgo ../Hyacinth)

LINK_DIRECTORIES(../Asgard)

TARGET_INCLUDE_DIRECTORIES(Hubris PRIVATE ${PostgreSQL_INCLUDE_DIRS})
TARGET_LINK_LIBRARIES(Hubris PRIVATE Ginkgo Hyacinth ${PostgreSQL_LIBRARIES} TinyXML)


